package com.xiaochen.baidu.service;

import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.*;

/**
 * @author xc
 * @date 2025/10/11/14:19
 * @desc moids服务接口
 */
public interface IMoiuLoginService {
    
    //username + password
    @FormUrlEncoded
    @POST("/login")
    Call<ResponseBody> getOauthSession(@Field("username") String username, @Field("password") String password) throws Exception;
    //client_id + redirect_uri + state + response_type
    @FormUrlEncoded
    @POST("/oauth/authorize/confirm")
    Call<ResponseBody> confirm(@Header("Cookie") String cookie,@Field("client_id") String clientId,@Field("redirect_uri") String redirectUri,@Field("state") String state,@Field("response_type") String responseType) throws Exception;
   
}
